<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>编辑商品</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" style="background-color: #f2f2f2;padding-top: 10px;" wid100>
  <input type="hidden" name="id" value="$!{id}"/>
  <input type="hidden" name="code" value="$!{code}"/>
  <input type="hidden" name="projectId" value="$!{projectId}"/>
  <div class="layui-card" style="margin-bottom: 10px;">
    <div class="layui-card-header">商品基础信息</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm3">
          <div style="width:150px;max-height:150px;overflow:hidden;margin:auto;"><img src="$!{thumbnailImg}" style="width:100%;"></div>
        </div>
        <div class="layui-col-sm9">
          <div class="layui-row">
			#if($id)
            <div class="layui-col-sm4">
              <div class="layui-form-item">
                <label class="layui-form-label">商品ID</label>
                <div class="layui-form-mid layui-word-aux">$!{id}</div>
              </div>
            </div>
			#end
            <div class="layui-col-sm4">
              <div class="layui-form-item">
                <label class="layui-form-label">商品CODE</label>
                <div class="layui-form-mid layui-word-aux">$!{code}</div>
              </div>
            </div>
            <div class="layui-col-sm4">
              <div class="layui-form-item">
                <label class="layui-form-label">批发价</label>
                <div class="layui-form-mid layui-word-aux">$!{payMoneyStr}元</div>
              </div>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-form-mid layui-word-aux">$!{name}</div>
          </div>
          <div class="layui-row">
            <div class="layui-col-sm4">
              <div class="layui-form-item">
                <label class="layui-form-label">商品分类</label>
                <div class="layui-form-mid layui-word-aux">$!{classifyName}</div>
              </div>
            </div>
            <div class="layui-col-sm8">
              <div class="layui-form-item">
                <label class="layui-form-label">商品类型</label>
                <div class="layui-form-mid layui-word-aux">$!{typeNames}</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="layui-card">
    <div class="layui-card-header">零售价格设置</div>
    <div class="layui-card-body">
        <div class="layui-row">
          <div class="layui-col-sm4">
            <div class="layui-form-item">
              <label class="layui-form-label">零售价</label>
              <div class="layui-input-block">
                <input type="text" name="payMoneyStr" lay-verify="required" placeholder="请输入零售价" autocomplete="off" class="layui-input" value="$!{payMoneyStr}">
              </div>
            </div>
          </div>
          <div class="layui-col-sm4">
            <div class="layui-form-item">
              <label class="layui-form-label">单笔限购</label>
              <div class="layui-input-block">
                <input type="text" name="gainCount" lay-verify="required" placeholder="请输入单笔限购数量" autocomplete="off" class="layui-input" value="$!{gainCount}">
                <p>0:代表不限制</p>
              </div>
            </div>
          </div><!-- /.layui-col-sm4 -->
        </div>
    </div>
  </div>
  <div class="layui-card">
    <div class="layui-card-header">团拼价格设置</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">团拼人数</label>
            <div class="layui-input-block">
              <input type="text" name="teamCount" lay-verify="required" placeholder="请输入组团数量" autocomplete="off" class="layui-input" value="$!{teamCount}">
              <p>0:代表不进行团拼</p>
            </div>
          </div>
        </div><!-- /.layui-col-sm4 -->
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">团拼价</label>
            <div class="layui-input-block">
              <input type="text" name="teamPayMoneyStr" lay-verify="required" placeholder="请输入团拼价" autocomplete="off" class="layui-input" value="$!{teamPayMoneyStr}">
            </div>
          </div>
        </div><!-- /.layui-col-sm4 -->
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">组团时长</label>
            <div class="layui-input-block">
              <input type="text" name="teamMinute" lay-verify="required" placeholder="请输入组团时长（分钟）" autocomplete="off" class="layui-input" value="$!{teamMinute}">
            </div>
          </div>
        </div><!-- /.layui-col-sm4 -->
      </div>
    </div>
  </div><!-- /.layui-card -->
  <div class="layui-card">
    <div class="layui-card-header">订单完成随机获取奖励金额</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">总奖励</label>
            <div class="layui-input-block">
              <input type="text" name="rewardMoneyStr" lay-verify="required" placeholder="请输入总奖励金额" autocomplete="off" class="layui-input" value="$!{rewardMoneyStr}">
            </div>
          </div>
        </div><!-- /.layui-col-sm4 -->
        <div class="layui-col-sm8">
          <ol style="padding-left: 25px;">
            <li>1. 单独购买时，订单评价后随机获取此金额以下奖励</li>
            <li>2. 团拼时所有团员随机获取奖励金额，所有团员累加金额不超过此金额</li>
          </ol>
        </div>
      </div>
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
  </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/' //静态资源所在路径
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index' //主入口模块
  ,simple_team_pay_goods_edit:'business/simple_team_pay_goods_edit'
}).use(['index', 'form', 'simple_team_pay_goods_edit'])
</script>
</body>
</html>